﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="BJGG.ascx.cs" Inherits="XYTXL.Web.View.UCMangForm.BJGG" %>
<link href="/View/JS/umeditor122/themes/default/css/umeditor.css" type="text/css" rel="stylesheet" />
<script src="/View/JS/umeditor122/umeditor.js" type="text/javascript" charset="utf-8"></script>
<script src="/View/JS/umeditor122/umeditor.config.js" type="text/javascript" charset="utf-8"></script>
<div class="row">
    <div class="col-xs-11">
        <div class="form-group">
            <label>类型</label>
            <asp:DropDownList runat="server" ID="ddlLX" CssClass="form-control gglx" onchange="chang(this)">
                <asp:ListItem Text="选择类型" />
                <asp:ListItem Text="班级新闻公告" />
                <asp:ListItem Text="班级照片" />
            </asp:DropDownList>
        </div>
        <div class="form-group">
            <label>标题</label>
            <asp:TextBox ID="txtTitle" runat="server" CssClass="form-control validate[required]"></asp:TextBox>
        </div>
        <div class="form-group" id="XQ" style="display:none">
            <label>详情</label>
            <asp:TextBox ID="txtDetails" runat="server" TextMode="MultiLine" CssClass="form-control UEEDIT"></asp:TextBox>
        </div>
        <div class="form-group" id="TP" style="display:none">
            <label>图片</label>
            <asp:TextBox ID="txtFiles" runat="server" CssClass="form-control FT_Upload" title="附件上传"></asp:TextBox>
        </div>
    </div>
    <div class="col-xs-4">
        <input type="hidden" id="bjdm" value="" runat="server" />
    </div>
</div>
<script>
    $("#bjdm").val(top.$("body").data("bjdm"));
    if ($(".gglx").val() == "班级新闻公告") {
        $("#XQ").show();
        $("#TP").hide();
    }
    if ($(".gglx").val() == "班级照片") {
        $("#XQ").hide();
        $("#TP").show();
    }
    function chang(dom) {
        if ($(dom).val() == "班级新闻公告") {
            $("#XQ").show();
            $("#TP").hide();

        }
        if ($(dom).val() == "班级照片") {
            $("#XQ").hide();
            $("#TP").show();
        }
    }
</script>
